package com.pagoda.nerp.trade.dao;

import com.pagoda.nerp.trade.entity.MdAccount;

import java.util.List;
import java.util.Map;

public interface MdAccountDao {
    int deleteByPrimaryKey(Integer accountId);

    int insert(MdAccount record);

    MdAccount selectByPrimaryKey(Integer accountId);

    List<MdAccount> selectAll();

    int updateByPrimaryKey(MdAccount record);
    
    MdAccount selectByOpenId(String openid);
    
    MdAccount selectByAccount(String account);
    
    int getCountByAccount(String account);

    // 根据条件获取列表
    List<MdAccount> selectAllByConditon(Map map);

    // 根据条件获取详情
    MdAccount selectOneByCondition(Map map);

    // 根据条件进行删除
    int deleteByCondition(Map map);

    // 根据条件更新供应商子账户
    int updateStatusByCondition(Map map);

    List<MdAccount> selectByCondition(Integer vendorId);

    int updateOpenId(MdAccount record);
    
    int updateStatus(Map map);

    List<String> selectOpenIdByVendorId(Integer vendorId);

}